$(function () {
	function prevent(e) {
		e.preventDefault();
	};

	var UpList = new Swiper('.UpList', {
		mode: 'vertical',
		loop: true,
		autoplay: 3000,
		speed: 800,
		direction: 'vertical',
	});
	if ($("#zixun-wrap").length > 0) {
		var clientHeight = $("#zixun-wrap").offset().top;
		$(window).scroll(function (event) {
			console.log(clientHeight);
			var scroll = $(document).scrollTop();
			if (scroll < clientHeight) {
				$("#zixun-wrap").css({
					"position": "inherit"
				});

			} else {
				$("#zixun-wrap").css({
					"position": "fixed",
					"zIndex": 10,
					"width": "100%",
					"top": 0,
					"left": 0
				});
			}
		});
	}

})
